<template>
    <div v-loading="loading" class="box">
        <div>
            <adminAnswerDetailTableItem :list="data.list"/>
        </div>
    </div>
</template>

<script>
import { getAnswerDetail } from '@/api/answer'
import adminAnswerDetailTableItem from './components/adminAnswerDetailTableItem.vue'
export default {
    components : {
        adminAnswerDetailTableItem
    },
    data(){
        return {
            data : {},
            loading : false
        }
    },
    created(){
        this.getData()
    },
    methods : {
        getData(){
            this.loading = true
            getAnswerDetail(this.$route.query.id).then(res => {
                this.loading = false
                if(res.code == 200){
                    console.log(res);
                    this.data = res.data
                }
            })
        }
    }
}
</script>

<style lang="scss" scoped>
.box{
    padding: 20px;
    background-color: #fff;
}
</style>